/**
 * 
 */
package org.insia.smartposse.metier.webservice;

import java.io.Serializable;

import org.insia.smartposse.metier.CategoryTheme;

/**
 * @author raguerri
 * @since 18 avr. 07
 * @version 0.0.1
 * 
 */
public class LightCategoryTheme 
implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8878062929917830491L;
	private long id;
	private long category;
	private String label;
	
	public LightCategoryTheme() {}

	public LightCategoryTheme(CategoryTheme ctheme) {
		id = ctheme.getId();
		category = ctheme.getCategory() != null ? ctheme.getCategory().getId() : -1L;
		label = ctheme.getLabel();
	}

	/**
	 * @return the category
	 */
	public long getCategory() {
		return category;
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @return the label
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * @param category the category to set
	 */
	public void setCategory(long category) {
		this.category = category;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @param label the label to set
	 */
	public void setLabel(String label) {
		this.label = label;
	}
}
